export default function FormInput({
  label,
  type = "text",
  value,
  onChange,
  required = false,
}) {
  return (
    <div className="mb-4">
      <label className="block mb-1">{label}</label>
      <input
        type={type}
        value={value}
        onChange={onChange}
        className="border border-gray-300 p-2 w-full"
        required={required}
      />
    </div>
  );
}
